package Main;

import gongju.User;

import javax.swing.*;

public class MainJFrame {
    public static JFrame frame = new JFrame("登录窗口");
    public static User user;
    //主窗体设置
    public static void main(String[] args) {
       frame.setSize(900, 600);
       frame.setLocationRelativeTo(null);
       frame.setContentPane(new Login());
       frame.setVisible(true);
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    public static void setContent(JPanel panel) {
        frame.setContentPane(panel);
    }


}
